import React, { Component } from 'react'

export default class Child extends Component {
  state = {
    // users: [
    //   { id: '0001', name: 'judith' },
    // ],
    users: 'a',
  }

  render() {
    return (
      <>
        <h3>我是Child组件</h3>
        <ul>
          {this.state.users.map(user => <li key={user.id}>{user.name}</li>)}
        </ul>
      </>
    )
  }
}
